# $Id$
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>

pkgname=libxxf86dga
pkgver=1.1.4
pkgrel=1
pkgdesc="X11 Direct Graphics Access extension library"
arch=('i686' 'x86_64')
url="https://xorg.freedesktop.org/"
license=('custom')
depends=('libxext' 'xf86dgaproto')
makedepends=('xorg-util-macros')
source=(${url}/releases/individual/lib/libXxf86dga-${pkgver}.tar.bz2)
sha256sums=('8eecd4b6c1df9a3704c04733c2f4fa93ef469b55028af5510b25818e2456c77e')

build() {
  cd "${srcdir}/libXxf86dga-${pkgver}"
  ./configure --prefix=/usr --disable-static
  make
}

package() {
  cd "${srcdir}/libXxf86dga-${pkgver}"
  make DESTDIR="${pkgdir}" install

  install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}
